CC=g++ -std=c++11
FLAGS=-g -Wall -rdynamic -s

LIBS=-lpthread -lrt -L../../lib -lloong -lmysqlclient_r -lcrypto -l_acl_cpp -l_acl -liconv -lsdbcpp -ldl

INCS=-I. -I../../loong/base -I../../loong/net -I../../include -I../../loong/db -I/opt/sequoiadb/include -I../comm

VPATH=../comm

SRCS=$(wildcard *.cpp ../comm/*.cpp)

OBJ_DIR=obj
OBJS=$(patsubst %.cpp, $(OBJ_DIR)/%.o, $(notdir ${SRCS}) )

BIN_DIR=bin
TARGET=frame 

$(BIN_DIR)/$(TARGET):$(OBJS)
	$(CC) $(FLAGS) -o $@ $^ $(LIBS) 
$(OBJ_DIR)/%.o:%.cpp
	$(CC) -c $(FLAGS) $(INCS) $< -o $@

clean:
	-rm -f $(OBJ_DIR)/*.o



